home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / mflms101.arc / MFLOCALE.H < prev    next >
C/C++ Source or Header  |  1989-11-25  |  3KB  |  103 lines

  1. /************************************************************************/
  2. /*                                                                      */
  3. /*  LOCALE Header file                                                  */
  4. /*                                                                      */
  5. /*  Draft ANSI-spec header for country-specific information.            */
  6. /*                                                                      */
  7. /*  Copyright 1989 by Robert B. Stout dba MicroFirm                     */
  8. /*  All rights reserved                                                 */
  9. /*                                                                      */
  10. /*  Compiled by QC 2.0 for use with MSC 5.1 or QC 2.0 or later.         */
  11. /*                                                                      */
  12. /************************************************************************/
  13.  
  14. #ifndef STDARG_H
  15. #include <stdarg.h>
  16. #endif
  17.  
  18. #ifndef LOCALE_H
  19. #define LOCALE_H
  20.  
  21. #define LC_ALL          0
  22. #define LC_COLLATE      1
  23. #define LC_CTYPE        2
  24. #define LC_MONETARY     3
  25. #define LC_NUMERIC      4
  26. #define LC_TIME         5
  27.  
  28. /************************************************************************/
  29. /*                                                                      */
  30. /*  Set up enumerated data types for locales and date ordering -        */
  31. /*  provide a default locale.                                           */
  32. /*                                                                      */
  33. /************************************************************************/
  34.  
  35. typedef enum {_C_, USA, MAX_LOC} _locale_loc;
  36.  
  37. #define LOC_DEFAULT USA
  38.  
  39. /*
  40. **  ANSI-specified locale definition structure
  41. */
  42.  
  43. struct lconv {
  44.                 char    *s_all;
  45.  
  46.                 char    *s_collate;
  47.  
  48.                 char    *s_ctype;
  49.  
  50.                 char    *s_monetary;
  51.                 char    *currency_symbol;
  52.                 char    *int_curr_symbol;
  53.                 char    *mon_decimal_point;
  54.                 char    *mon_thousands_sep;
  55.                 char    *mon_grouping;
  56.                 char    *positive_sign;
  57.                 char    *negative_sign;
  58.                 char    int_frac_digits;
  59.                 char    frac_digits;
  60.                 char    p_cs_precedes;
  61.                 char    n_cs_precedes;
  62.                 char    p_sep_by_space;
  63.                 char    n_sep_by_space;
  64.                 char    p_sign_posn;
  65.                 char    n_sign_posn;
  66.  
  67.                 char    *s_numeric;
  68.                 char    *decimal_point;
  69.                 char    *thousands_sep;
  70.                 char    *grouping;
  71.  
  72.                 char    *s_time;
  73.                 char    *day[7][2];
  74.                 char    *month[12][2];
  75.                 int     TZ_secs;
  76.                 int     DST_flag;
  77.                 char    *TZ_txt[2];
  78.                 char    tim_sep;
  79.                 char    *p_FMTA;
  80.                 char    *p_FMTP;
  81.                 char    *c_FORMAT;
  82.                 char    *x_FORMAT;
  83.                 char    *X_FORMAT;
  84.         char    fmt_24;
  85.         };
  86.  
  87. /*
  88. **  ANSI-mandated locale-related functions
  89. */
  90.  
  91. #ifndef _Cdecl_
  92.  #ifdef NO_EXT_KEYS
  93.   #define _Cdecl_
  94.  #else
  95.   #define _Cdecl_ cdecl
  96.  #endif
  97. #endif
  98.  
  99. char         * _Cdecl_ setlocale(int, const char *);
  100. struct lconv * _Cdecl_ localeconv(void);
  101.  
  102. #endif /* LOCALE_H */
  103.